package com.moinut.studentattendancemanager.model.dao;

import com.moinut.studentattendancemanager.model.vo.db.Student;

import java.util.List;

/**
 * @author MOILING
 */
public interface IStudentDAO {

    Student findLogin(Student student) throws Exception;

    Student getStudentById(String studentId) throws Exception;

    List<Student> getStudentsByName(String studentName) throws Exception;

    List<Student> getStudentsByClass(String classId) throws Exception;

    List<Student> getStudentsByMajor(String major) throws Exception;

    List<Student> getAllStudents() throws Exception;

    boolean updateStudentInfo(String oldId, Student newStudent) throws Exception;

    boolean updateStudentPassword(String oldId, String newPassword) throws Exception;

    boolean updateStudentEmail(String studentId, String newEmail) throws Exception;
}
